import { createApp } from 'vue'
import { createRouter, createWebHashHistory } from 'vue-router'
import App from './App.vue'

import Antd from 'ant-design-vue'
import 'ant-design-vue/dist/antd.css'

import ItemList from './components/item/item-list.vue'
import ItemAdd from './components/item/item-add.vue'
import OrderList from './components/order/order-list.vue'

const routes = [
    {
        path: '/item-list',
        component: ItemList
    },
    {
        path: '/item-add',
        component: ItemAdd
    },
    {
        path: '/order-list',
        component: OrderList
    }
]

const router = createRouter({
    history: createWebHashHistory(),
    routes,
});

createApp(App)
    .use(router)
    .use(Antd)
    .mount('#app')
